﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/AjaxMaster.master" ValidateRequest="true"
		AutoEventWireup="true" CodeFile="Bridge.aspx.cs" EnableViewState="false" Inherits="Manager_Bridge" %>
<%@ Register Src="~/Controls/Borrower/BorrowerPhones.ascx" TagName="Phones" TagPrefix="borrower" %>
<%@ Register Src="~/Controls/_UI/Phone/PhoneCategories.ascx" TagName="PhoneCategories" TagPrefix="UI" %>
<%@ Register Src="~/Controls/USIX/Bridge_Notes.ascx" TagName="Bridge_Notes" TagPrefix="LOAN" %>
<%@ Register Src="~/Controls/USIX/Bridge_Note.ascx" TagName="Bridge_Note" TagPrefix="LOAN" %>
<%@ Register Src="~/Controls/USIX/Bridge_CollectionInfo.ascx" TagName="Bridge_CollectionInfo" TagPrefix="LOAN" %>
<%@ Import Namespace="AjaxMasterExtentions" %>
<%@ Import Namespace="Dimok.Web.UI" %>
<script runat="server">
	public int LoanID { get {return int.Parse(Request["LoanID"]+""); } }
</script>	
<asp:Content ID="cphForm" ContentPlaceHolderID="cphForm" Runat="Server">
<table class="Docks" width="100%" frame="border" border="1" style="border-color:Gray;border:none;overflow:visible">
<tr class="Zone">
	<td class="Zone" nowrap>
		<ul id="ulDock_1_1" runat="server">
			<li class="ZoneAnchor">Zone 1.1</li>
			<li runat="server" id="liBridge">
					<LOAN:Bridge ID="Bridge" DocksID="Docks" runat="server" />
			</li>
		</ul>
	</td>
	<td class="Zone" nowrap>
		<ul id="ulDock_1_2" runat="server">
			<li class="ZoneAnchor" runat="server">Zone 1.2</li>
			<li id="liPayments" runat="server">
				<LOAN:Bridge_Payments ID="BridgePayments" Skin="Office2007" runat="server" />
			</li>
		</ul>
	</td>
</tr>
</table>
<table class="Docks">
<tr class="Zone">
<td class="Zone">
		<ul id="ulDock_2" runat="server">
			<li class="ZoneAnchor">Zone 2</li>
			<li runat="server" id="liCustomerInfo">
				<fieldset style="display:"><legend>Customer Info</legend>
					<div id="CollectionInfo"></div>
				</fieldset>
			</li>
		</ul>
</td>
</tr>
</table>
<table class="Docks">
<tr class="Zone">
<td class="Zone">
		<ul id="ulDock_3_1" runat="server">
			<li class="ZoneAnchor">Zone 3.1</li>
			<li id="liNote" runat="server">
				<LOAN:Bridge_Note ID="BridgeNote" style="display:none" runat="server" />
			</li>
			<li id="liNotes" runat="server">
				<LOAN:Bridge_Notes ID="BridgeNotes" runat="server" />
			</li>
		</ul>
</td>
<td class="Zone">
		<ul id="ulDock_3_2" runat="server">
			<li class="ZoneAnchor">Zone 3.2</li>
		</ul>
</td>
</tr>
</table>

<%--<table class="Docks"><tr class="Zone"><td class="Zone">
<fieldset id="Importante"><legend>Importante</legend>
<iframe src="http://www.google.com/search?hl=en&q=espn+radio&aq=5&oq=espn" style="float:left"></iframe>
</fieldset>
</td></tr></table>--%>
<script>
	Sys.Application.add_init(function() {
		$create(Dimok.Docks, { id: "Docks" }, null, null, null);
		$create(motobankcorp.Bridge_CollectionInfo, null, null, null, $get("CollectionInfo"));
	});
	// ****************************
	Sys.Application.add_load(function() { $J('legend').click(function() { $J(this).next().slideToggle(); }); });
//	Sys.Application.add_load(function() {
//		//		var sl = new Sys._ScriptLoader();
//		//		sl.queueScriptBlock("alert('Dimok Rulezzzz!')");
//		//		sl.loadScripts(1000, null, null, null);
//		//$create(motobankcorp.Bridge_Payments, { "id": "bridge_Payments" }, null, null, $J("LI[profileID='liPayments']")[0]);
//	});
</script>
<asp:TextBox ID="_txt_" runat="server" Visible="false" /><ajaxtk:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="_txt_" />
</asp:Content>
<asp:Content ID="cphScripts" ContentPlaceHolderID="cphMoreScripts" runat="server">
	<asp:ScriptManagerProxy ID="smp" runat="server">
	<Services>
		<asp:ServiceReference Path="~/Manager/Admin/Admin.asmx" />
		<asp:ServiceReference Path="~/Manager/WebServices/Bridge.asmx" />
	</Services>
	<CompositeScript>
	<Scripts>
	<asp:ScriptReference Path="~/Controls/USIX/Bridge_CollectionInfo.js" />
	</Scripts>
</CompositeScript>
</asp:ScriptManagerProxy>
<script>
	function loadjscssfile(filename, filetype) {
		if (filetype == "js") { //if filename is a external JavaScript file
			var fileref = document.createElement('script')
			fileref.setAttribute("type", "text/javascript")
			fileref.setAttribute("src", filename)
		}
		else if (filetype == "css") { //if filename is an external CSS file
			fileref = document.createElement("link")
			fileref.setAttribute("rel", "stylesheet")
			fileref.setAttribute("type", "text/css")
			fileref.setAttribute("href", filename)
		}
		if (typeof fileref != "undefined")
			document.getElementsByTagName("head")[0].appendChild(fileref)
	}
</script>
</asp:Content>
